public class printer {
    private InkBox inkbox;
    private Paper paper;
    public printer(){

    }
    public printer(InkBox inkbox,Paper paper){
        this.inkbox=inkbox;
        this.paper=paper;
    }
    public InkBox getInkbox() {
        return inkbox;
    }

    public void setInkbox(InkBox inkbox) {
        this.inkbox = inkbox;
    }

    public Paper getPaper() {
        return paper;
    }

    public void setPaper(Paper paper) {
        this.paper = paper;
    }
    public void print(){
        System.out.printf("颜色：%s，纸张：%s",inkbox.getColor(),paper.getPaper());
    }
}
